// Copyright (c) 2009 Luca Marrocco.
// Modified or written by Luca Marrocco for inclusion with codej.
// Licensed under the Apache License, Version 2.0 (the "License")
package codej.ast;

import codej.ast.*;

/** @author Luca Marrocco */
public class ClassOrInterfaceTypeDeclaration extends TypeDeclaration {

	private boolean isInterface = false;
	private Block block;

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public Block getBlock() {
		return block;
	}

	public boolean isInterface() {
		return isInterface;
	}

	public ClassOrInterfaceTypeDeclaration setBlock(Block block) {
		this.block = block;

		return this;
	}

	public ClassOrInterfaceTypeDeclaration setIsInterface(boolean isInterface) {
		this.isInterface = isInterface;

		return this;
	}
}